<template>
  <div>
    <Button @click="goFresh">刷新</Button>
    <Button @click="goOut" primary>前往</Button>
  </div>
</template>

<script setup lang="ts">
  import { onMounted } from 'vue'
  import { Button } from 'ant-design-vue'
  import { useRedo, useGo } from '/@/hooks/web/usePage'
  import { getInfo } from '/@/api/project/index'
  const redo = useRedo()
  const go = useGo()
  // 刷新
  const goFresh = () => {
    redo()
  }
  // 前往
  const goOut = () => {
    go('/project/base')
  }
  onMounted(() => {
    getInfo()
  })
</script>

<style scoped lang="less"></style>
